home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_11.lha
/
5_11
/
5_11b.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
546b
|
25 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ included within prim() DELETE
ase NAME:
get_token(input, variables); // skip name
ret->cvalue = curr_tok.cvalue;
if (curr_tok.type == ASSIGN)
{
get_token(input, variables); // skip '='
ret->type = ASSIGN;
ret->left = get_expr(input, variables);
}
else
ret->type = NAME;
return ret;
ase SEMICOLON:
ret->type = SEMICOLON;
get_token(input, variables); // skip ';'
return ret;